Skip to main content
Version: 3.5.0

Return Public Key

This returns the public of the Aventus account connected to the SURI being used.

// Returns the address associated with the SURI interacting with the API.
avnSdk.myPublicKey();
All API utils also work in offline mode.

See the Initialise page for instructions on how to set the API in Offline mode.

Also, seed and mnemonic are not stored and cannot be returned.

Example Result

In Offline mode, undefined is returned.

0x6e0b67f4590ac2b4e9daa9f229cc4a0c77b3109e8a622e5a1128518ad76e736b